<?php
	require "conn.php";
	header("Access-Control-Allow-Origin: *");
	
	$user=$_POST['name'];//username：表单的名称
	$pass=$_POST['passWord'];

	$query="select * from QQ where QQNumber='$user'";
	$result=mysql_query($query);
	
	if(mysql_fetch_array($result)){
		echo 0;
	}else{
		$query="insert QQ(QQNumber,Password) values('$user','$pass')";
		mysql_query($query);
		echo 1;		
	}	
?>
